package com.employee.mapper;

import com.employee.pojo.dto.UserDTO;
import com.employee.pojo.entry.User;
import com.employee.pojo.vo.UserInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from emp where email = #{email}")
    User selectByEmail(UserDTO userDTO);

    UserInfoVO getUserInfo(@Param("id") Long id);


    void update(User user);
}
